package p270jp.pxv.android.viewholder;

import android.view.View;
import androidx.lifecycle.AbstractC0721k;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;
import p181ge.AdViewHolder;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.R;
import p270jp.pxv.android.advertisement.presentation.view.SelfServeRelatedWorksView;
import p270jp.pxv.android.legacy.model.GoogleNg;
import p325m0.MutabilityOwnership;

/* compiled from: IllustDetailAdvertisementSolidItem.kt */
/* renamed from: jp.pxv.android.viewholder.IllustDetailAdvertisementSolidItem */
/* loaded from: classes2.dex */
public final class IllustDetailAdvertisementSolidItem extends BaseViewHolder implements AdViewHolder, LifecycleObserver {
    private GoogleNg googleNg = GoogleNg.WHITE;
    private final SelfServeRelatedWorksView selfServeRelatedWorksView;
    public static final Companion Companion = new Companion(null);
    public static final int $stable = 8;

    /* compiled from: IllustDetailAdvertisementSolidItem.kt */
    /* renamed from: jp.pxv.android.viewholder.IllustDetailAdvertisementSolidItem$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final int getLayoutRes() {
            return R.layout.view_illust_detail_advertisement_solid_item;
        }
    }

    /* compiled from: IllustDetailAdvertisementSolidItem.kt */
    /* renamed from: jp.pxv.android.viewholder.IllustDetailAdvertisementSolidItem$Item */
    /* loaded from: classes2.dex */
    public static final class Item {
        public static final int $stable = 0;
        public static final Item INSTANCE = new Item();

        private Item() {
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public IllustDetailAdvertisementSolidItem(View view) {
        super(view);
        MutabilityOwnership.m3745m(view, "view");
        View findViewById = view.findViewById(R.id.advertisement_view);
        MutabilityOwnership.m3746l(findViewById, "view.findViewById(R.id.advertisement_view)");
        this.selfServeRelatedWorksView = (SelfServeRelatedWorksView) findViewById;
    }

    public static final int getLayoutRes() {
        return Companion.getLayoutRes();
    }

    public GoogleNg getGoogleNg() {
        return this.googleNg;
    }

    @Override // p181ge.AdViewHolder
    public void handleOnAttached() {
    }

    @Override // p181ge.AdViewHolder
    public void handleOnDetached() {
    }

    @OnLifecycleEvent(AbstractC0721k.EnumC0723b.ON_PAUSE)
    public final void handleOnPause() {
        this.selfServeRelatedWorksView.m4640w();
    }

    @Override // p181ge.AdViewHolder
    public void setGoogleNg(GoogleNg googleNg) {
        MutabilityOwnership.m3745m(googleNg, "<set-?>");
        this.googleNg = googleNg;
    }

    @Override // p270jp.pxv.android.viewholder.BaseViewHolder
    public void show() {
        this.selfServeRelatedWorksView.m4639x(getGoogleNg());
    }
}
